﻿using System.Threading.Tasks;

namespace Fast.Extensions.EventBus
{
    /// <summary>
    /// 异常集成事件处理器
    /// </summary>
    public interface IIntegrationEventExceptionHandler
    {

    }

    /// <summary>
    /// 泛型异常集成事件处理器
    /// </summary>
    /// <typeparam name="TIntegrationEvent"></typeparam>
    public interface IIntegrationEventExceptionHandler<in TIntegrationEvent> : IIntegrationEventExceptionHandler
        where TIntegrationEvent : IntegrationEvent
    {
        Task HandleAsync(TIntegrationEvent @event);
    }
}
